/*
 * GraphicsComponent.cpp
 * implementation
 *  Created on: Oct 9, 2012
 *      Author: pigmal
 */

#include"GraphicsComponent.h"

GraphicsComponent::GraphicsComponent()
{
}

vector3f GraphicsComponent::GetPosition()
{
	return Matrix.GetLastRow();
}

void GraphicsComponent::SetPosition(glm::vec3 pos)
{
	Matrix.SetLastRow(pos);
}

vector3f GraphicsComponent::GetRotation()
{
	return Matrix.GetDiagonal();
}

void GraphicsComponent::SetRotation(glm::vec3 rot)
{
	glm::mat4 glm::rotate();
	Matrix.SetDiagonal(rot);
}

matrix44f_c GraphicsComponent::GetMatrix()
{
	return Matrix;
}

void GraphicsComponent::SetMatrix(glm::mat4 mat)
{
	Matrix = mat;
}
